<?php

namespace app\admin\model;

use think\Model;

class Member extends Model
{
    protected $pk = 'member_id';

    public function cashBack()
    {
        return $this->hasOne('CashLog');
    }

    public function cash()
    {
        return $this->hasOne('CashLog','source_member_id');
    }
}
